#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:server.py
# author:Jackiex
# datetime:2023/5/22 10:39
# software: PyCharm

"""
 通过WSGI创建一个Web服务器
"""

from wsgiref.simple_server import make_server

from hello import application,application1,application2

# 创建一个web服务器，监听8000端口，所有的请求处理，到交给application来相应

httpd = make_server('', 8000, application)

print('Serving HTTP on port 8000...')

httpd.serve_forever()
